package com.romotc.qqrobot.webqq.qqInterfaceCall.dataProcessor;

import java.util.Map;

import org.json.JSONObject;

import com.romotc.qqrobot.bean.QQLogedin;
import com.romotc.qqrobot.webqq.qqInterfaceCall.QQInterfaceCall;
import com.romotc.scache.RequestSpy;

public interface DateProcessor {

	public static final String Key_RetCode = "DateProcessor_RetCode";
	public static final String Key_ResBody = "DateProcessor_ResBody"; 
	
	
	
	/**
	 * Call的结果：1成功，0失败 不继续调用
	 */
	public static final String Key_CallResult = QQInterfaceCall.Key_CallResult;
	/**
	 * 结果说明
	 */
	public static final String Key_CallResult_Resion = QQInterfaceCall.Key_CallResult_Resion;
	/**
	 * Call结果常量
	 * 成功：1
	 */
	public static final int Key_CallResult_Success = QQInterfaceCall.Key_CallResult_Success;
	/**
	 * Call结果常量
	 * 失败：1
	 */
	public static final int Key_CallResult_Error = QQInterfaceCall.Key_CallResult_Error;

	/**
	 * 处理返回信息
	 * @param processor
	 * @return 解析好的信息
	 */
	JSONObject processResponse(QQLogedin loginQQ, RequestSpy rqSpy, JSONObject reqDataObj) throws Exception;

}
